package org.kotboot.domain;

import org.kotboot.domainext.ExtAll;
import org.kotboot.kit.K;

import javax.persistence.Table;
import java.util.Date;

/**
 * jisong.sun 2017/9/14 16:37
 */
@Table(name = "ms_user")
public class User extends ExtAll {
    private String nickname;
    private String mobile;
    private String email;
    private String password;
    private String salt;
    private String state;
    private String sex;
    private Date birthday;
    private String avator;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getAvator() {
        return avator;
    }

    public void setAvator(String avator) {
        this.avator = avator;
    }

    @Override
    public String toString() {
        return K.toJson(this);
    }
}
